#! /bin/sh
. pathconfig.sh
cd build
MAKE=make-4.2
if [ ! -e "$MAKE" ] ; then
    wget http://ftp.gnu.org/gnu/make/$MAKE.tar.gz || exit 1
    tar -xzf $MAKE.tar.gz || exit 1
fi
cd $MAKE
export AR=arm-linux-androideabi-ar
export RANLIB=arm-linux-androideabi-ranlib
./configure --host=arm-linux --prefix=$baseroot/lib/cmake
make clean
make -j8